home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / bookmarks / flockBookmarksHelper.js < prev    next >
Text File  |  2007-02-06  |  997b  |  36 lines

  1. var BookmarksShareUtils =
  2. {
  3.   _coop: null,
  4.   
  5.   getCoopObject: function(BMDS, gResource)
  6.   {
  7.     if (this._coop == null)
  8.       this._coop = Components.classes['@flock.com/singleton;1']
  9.                              .getService(Components.interfaces.flockISingleton)
  10.                              .getSingleton('chrome://browser/content/flock/common/load-faves-coop.js')
  11.                              .wrappedJSObject;
  12.     return this._coop.get_from_resource (gResource);
  13.   }
  14. }
  15.  
  16. function Bookmark() {
  17.   this.URL = "";
  18.   this.name = "";
  19.   this.description = "";
  20.   this.tags = "";
  21.   this.time = "";
  22. }
  23.  
  24. Bookmark.prototype = {
  25.   getInterfaces: function (count) {
  26.     var interfaceList = [Components.interfaces.flockIBookmark, Components.interfaces.nsIClassInfo];
  27.     count.value = interfaceList.length;
  28.     return interfaceList;
  29.   },
  30.   QueryInterface: function (iid) {
  31.     if (!iid.equals(Components.interfaces.flockIBookmark))
  32.       throw Components.results.NS_ERROR_NO_INTERFACE;
  33.     return this;
  34.   }
  35. }
  36.